<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
{% csrf_token %}
    <h1>修改</h1><br>
    名字 <input type="text" name="iname" value="{{ all.iname }}"><br>
    价格 <input type="text" name="iP" value="{{ all.iPrice }}"><br>
    备注 <input type="text" name="iMark" value="{{ all.iMark }}"><br>
    类型 <select name="s" id="">
    {% for allb in alls %}
        {% if allb.id == all.Car_type_id%}
            <option value="{{ allb.id }}" selected>{{ allb.cname }}</option>
            {% else %}
            <option value="{{ allb.id }}">{{ allb.cname }}</option>
        {% endif %}

    {% endfor %}

</select><br>
<button>提交</button>
</form>
</body>
</html>